import { request } from '@/utils/request';

export interface SqlQuery {
  sql?: string;
}

export const queryDB = async (params: SqlQuery) => await request('POST', '/db/query', params);

export const resetDB = async () => await request('POST', '/db/reset');
